import request from '@/utils/request'

// 查询胀压管道清单列表
export function listPipeline(query) {
  return request({
    url: '/ledger/pipeline/list',
    method: 'get',
    params: query
  })
}

// 查询胀压管道清单详细
export function getPipeline(id) {
  return request({
    url: '/ledger/pipeline/' + id,
    method: 'get'
  })
}

// 新增胀压管道清单
export function addPipeline(data) {
  return request({
    url: '/ledger/pipeline',
    method: 'post',
    data: data
  })
}

// 修改胀压管道清单
export function updatePipeline(data) {
  return request({
    url: '/ledger/pipeline',
    method: 'put',
    data: data
  })
}

// 删除胀压管道清单
export function delPipeline(id) {
  return request({
    url: '/ledger/pipeline/' + id,
    method: 'delete'
  })
}
export function exportPipeline(query) {
  return request({
    url: '/ledger/pipeline/export',
    method: 'get',
    params: query
  })
}
